package com.jasonjan.jiance.global;

import android.support.annotation.NonNull;

import com.jasonjan.jiance.bean.HomeNews;
import com.jasonjan.jiance.bean.LoadingBean;
import com.jasonjan.jiance.bean.LoadingEndBean;
import com.jasonjan.jiance.binder.HomeNewsBinder;
import com.jasonjan.jiance.binder.LoadingEndViewBinder;
import com.jasonjan.jiance.binder.LoadingViewBinder;

import me.drakeet.multitype.MultiTypeAdapter;

/**
 * Created by jasonjan on 2018/3/13.
 */

public class Register {
    public static void registerHomeNewsItem(@NonNull MultiTypeAdapter adapter){
        adapter.register(HomeNews.ResultBean.DataBean.class,new HomeNewsBinder());
        adapter.register(LoadingBean.class, new LoadingViewBinder());
        adapter.register(LoadingEndBean.class, new LoadingEndViewBinder());
    }
}
